package net.huashitong.ssydt.provider.pk.service;


import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.pk.entity.SsPkYmdxChallengeRecord;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.12
 */
public interface SsPkYmdxChallengeRecordService extends LongService<SsPkYmdxChallengeRecord> {
    /**
     * 统计挑战人数
     *
     * @param matchRecordId
     * @return
     */
    int countDistinctUserIdByMatchRecordId(Long matchRecordId);

    /**
     * 查找符合勤学勋章的用户（不含已发放）
     *
     * @param sevenDayAgo
     * @param nowDate
     * @return
     */
    List<String> findUserIdByQinxue(String sevenDayAgo, String nowDate);
}
